package com.wasion.pwportable.protocol.analyzer.indicator;

import com.wasion.pwportable.protocol.analyzer.AbstractAnalyzer;

/**
 * 
 * @ClassName: Startup_Params_RD_Analyzer
 * @Description: 17/18. 正常工作参数查询与设置（电缆）
 * @author 高意
 * @date 2014-9-10 下午4:57:31
 * 
 */
public class Startup_Params_RD_Analyzer extends AbstractAnalyzer {

	@Override
	public void dataAnalysis(String ackBS) {

		String data = ackBS.substring(DATABITSTART, DATABITSTART + 6);

		result.setStartupCurrent(Integer.parseInt(data.substring(0, 2), 16));
		result.setFaultMaxTime(Integer.parseInt(data.substring(2, 4), 16));
		result.setCutoffMinTime(Integer.parseInt(data.substring(4, 6), 16));
	}
}
